package hzncc.wcs.entity.modbusconfig;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* Modbus信号点位 Entity 定义
* @author MyName
* @version 1.0
* @date 2025-03-28
* Copyright © MyCorp
*/
@TableName("mdl_modbus_signal_position")
@Getter @Setter @Accessors(chain = true)
public class ModbusSignalPosition extends BaseModel {
    private static final long serialVersionUID = 1320492043765230300L;
     /**
     * salve配置编码
     */
     @Length(max=100, message="salve配置编码长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String salveConfigCode;

     /**
     * salve配置Id
     */
     @TableField()
     private String salveConfigId;

     /**
     * salveId
     */
     @Length(max=100, message="salveId长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String salveId;

     /**
     * 偏移量
     */
     @Length(max=100, message="偏移量长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField(value = "`offset`")
     private String offset;

     /**
     * 名称
     */
     @Length(max=100, message="名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String name;

     /**
     * 功能码
     */
     @TableField()
     private String fun;

     /**
     * 数据类型
     */
     @TableField()
     private String dataType;

     /**
     * 备注
     */
     @Length(max=100, message="备注长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String remark;

     /**
     * 标识
     */
     @Length(max=100, message="标识长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String mark;

     /**
     * 读写
     */
     @TableField()
     private String readWriteAccess;

     /**
     * 位地址
     */
     @TableField()
     private Long coil;

     /**
     * 寄存器地址
     */
     @TableField()
     private Long register;


}